package org.gd.hellojaxb.privat24.dbpool.tomcat;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "Resource")
@XmlAccessorType(XmlAccessType.FIELD)
public class Resource {

    @XmlAttribute(name = "name")
    private String name;
    @XmlAttribute(name = "auth")
    private String auth;
    @XmlAttribute(name = "type")
    private String type = "javax.sql.DataSource";
    @XmlAttribute(name = "maxActive")
    private Integer maxActive;
    @XmlAttribute(name = "maxIdle")
    private Integer maxIdle;
    @XmlAttribute(name = "maxWait")
    private Integer maxWait;
    @XmlAttribute(name = "username")
    private String username;
    @XmlAttribute(name = "password")
    private String password = "";
    @XmlAttribute(name = "driverClassName")
    private String driverClassName;
    @XmlAttribute(name = "url")
    private String url;

    public Resource() {
    }

    public String getName() {
        return name;
    }

    public Resource setName(String name) {
        this.name = name;
        return this;
    }

    public String getAuth() {
        return auth;
    }

    public Resource setAuth(String auth) {
        this.auth = auth;
        return this;
    }

    public String getType() {
        return type;
    }

    public Resource setType(String type) {
        this.type = type;
        return this;
    }

    public Integer getMaxActive() {
        return maxActive;
    }

    public Resource setMaxActive(Integer maxActive) {
        this.maxActive = maxActive;
        return this;
    }

    public Integer getMaxIdle() {
        return maxIdle;
    }

    public Resource setMaxIdle(Integer maxIdle) {
        this.maxIdle = maxIdle;
        return this;
    }

    public Integer getMaxWait() {
        return maxWait;
    }

    public Resource setMaxWait(Integer maxWait) {
        this.maxWait = maxWait;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public Resource setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public Resource setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public Resource setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public Resource setUrl(String url) {
        this.url = url;
        return this;
    }
}
